Fix 419737 - don't focus the file list when activating a shortcut in the file chooser
authorFederico Mena Quintero <federico@novell.com>
Tue, 12 Feb 2008 19:32:17 +0000 (19:32 +0000)
committerFederico Mena Quintero <federico@src.gnome.org>
Tue, 12 Feb 2008 19:32:17 +0000 (19:32 +0000)
commit1cda35d32cff144f6b2f23e8408a372ef72fd358
treec31c9129b5028ffaf172feeb9083e95cbf523dd6
parent4118dd893f66ed85565c06a1c2150c4dee8f4b92
Fix 419737 - don't focus the file list when activating a shortcut in the file chooser
2008-02-12  Federico Mena Quintero  <federico@novell.com>

Merged from gtk-2-12:

Don't focus the file list when shortcuts get activated.  This
removes a lot of ambiguity in when the file selection should
change, and makes the overall code flow simpler.

This fixes http://bugzilla.gnome.org/show_bug.cgi?id=419737 -
file/save dialog clears the filename entry when changing
directories.

Also fixes http://bugzilla.gnome.org/show_bug.cgi?id=499940 -
focus should not go to the file list when a shortcut is activated.

* gtk/gtkfilechooserdefault.c
(shortcuts_activate_volume_mount_cb): Don't focus the file list
(shortcuts_activate_get_info_cb): Likewise.

* gtk/gtkfilechooserdefault.c (switch_to_shortcut): Don't focus
the file list (this was the last place where we would focus the
file list explicitly).  If you are in the location entry, for
example, you don't want Alt-Home to take you to the file list; you
just want the current folder to change.  Thanks to Olle Bergkvist
<olle.bergkvist@yahoo.se> for pointing this out in
http://bugzilla.gnome.org/show_bug.cgi?id=419737#c51.
(focus_browse_tree_view_if_possible): Removed.

Signed-off-by: Federico Mena Quintero <federico@gnu.org>
svn path=/trunk/; revision=19543
ChangeLog
gtk/gtkfilechooserdefault.c